package com.artisan.provider.controller;


import com.artisan.provider.domain.ZgUserMenu;
import com.artisan.provider.service.ZgUserMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ZgUserMenuController {

    @Autowired
    ZgUserMenuService zgUserMenuService;

    @GetMapping(value = "/api/user/menu/list")
    public List<ZgUserMenu> userMenu(){
        return zgUserMenuService.userMenuList();
    }

}
